#ifndef OPENEDDOCSWIDGET_H
#define OPENEDDOCSWIDGET_H

#include <QListWidget>
#include "Include/IEditor.h"

class OpenedDocsWidget : public QListWidget
{
    Q_OBJECT
public:
    explicit OpenedDocsWidget(QWidget *parent = 0);
    virtual ~OpenedDocsWidget();

    void setProjectPath(const QString& path);
signals:
    void closeEditor(const QString & file);
    void activateEditor(const QString & file);
public slots:
    void activated(const QString & file);
    void editorOpened(const QString & file);
    void editorClosed(const QString & file);
    void modifyChanged(const QString & file, bool m);
    void severityChanged(const QString & file, int sev);
protected:
    virtual void mousePressEvent(QMouseEvent *event);
    virtual void currentChanged(const QModelIndex &current, const QModelIndex &previous);
private slots:
private:
    QListWidgetItem * itemByFile(const QString & file);
    QString _projectPath;
};

#endif // OPENEDDOCSWIDGET_H
